package com.bf.electroplating.pojo.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.checkerframework.checker.units.qual.A;

@AllArgsConstructor
@Getter
public enum ValveStatusEnums {
    ON("1", "开启"),
    OFF("0", "关闭"),
;

    private final String code;
    private final String desc;



    public static String getDesc(String code) {
        for (ValveStatusEnums item : ValveStatusEnums.values()) {
            if (item.getCode().equals(code)) {
                return item.getDesc();
            }
        }
        return null;
    }
}
